<?php 
namespace Common\Model;
use Think\Model\RelationModel;
class YgclOldstudentModel extends RelationModel{
	protected $_link = array(
			'xiaoqu' => array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclDistrict',
					'foreign_key'=>'did',
			),
			'kecheng' => array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclClass',
					'foreign_key'=>'cid',
			),
			'banji' => array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclLesson',
					'foreign_key'=>'lid',
			),
	);
}
?>